$(function() {
	   $("ul.ui-sortable").sortable({
	        connectWith: ".ui-sortable",
	        stop:  function (event, ui) {
	        	var $item = $(ui.item);
	        	var data = $item.metadata();
	        	var newstatus = $item.parent('ul').data('status');
	            $.ajax({
	            	  url: '?mod=missions&act=contacts&sac=status&xvtrs=none&newstatus='+newstatus,
	            	  type:'POST',
	            	  dataType: 'json',
	            	  data: data,
	            	  success: function(output) {
	            		  $.fn.foxmessage(output);
	            	  }
	            	 
	            	});
	        }
	    }).disableSelection();
});